-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PSP support #319
base: master
Are you sure you want to change the base?
Add PSP support #319
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had some suggestions. It's really cool you got this running. We should take a look at why the you're getting crashes from the existing code. Some of these things may be related to us using gcc 14, which would mean easy fixes are available. Otherwise there might be some bugs in the PSPDEV sdk.
src/CMakeLists.txt
Outdated
@@ -120,5 +121,31 @@ if(WIN32) | |||
elseif(APPLE) | |||
target_link_libraries(prince SDL2main SDL2 SDL2_image m) | |||
else() # Linux, *BSD, etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would keep this else and use elseif(PSP)
src/types.h
Outdated
#ifdef __PSP__ //for testing, PSP only reads input at 333mhz with 60 FPS | ||
#define BASE_FPS 60 | ||
#else | ||
#define BASE_FPS 60 | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This look out of place
src/seg009.c
Outdated
Uint64 timer_last_counter[NUM_TIMERS]; | ||
#endif | ||
int wait_time[NUM_TIMERS]; | ||
|
||
|
||
#ifdef USE_COMPAT_TIMER | ||
//#if defined(USE_COMPAT_TIMER) || defined(__PSP__) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems off
Use pkg_search and findpkgconfig Co-authored-by: Wouter Wijsman <wwijsman@live.nl>
Co-authored-by: Wouter Wijsman <wwijsman@live.nl>
I get similar errors on LittleEndian ARM 32bit platform, solved now tks. I only had remove implicit conversion of |
The main issue with PSP was the crashes due to misaligned data. Now it works, but some issues were avoided in order for it to work (ini_process_word and such). Tested on real hardware (psp 2004 slim).
Note: Game still crashes whenever a short array[] op is done, due to the pragma(pop) and such (auto_moves,etc).